/* eslint-disable no-new-object */
/* eslint-disable @typescript-eslint/prefer-for-of */
// 获取路径后参数
export function getUrlParam(): any {
    let url = location.search;
    let theParam: any = new Object();
    if (url.indexOf('?') !== -1) {
        let str = url.substr(1);
        let strs = str.split('&');
        for (let i = 0; i < strs.length; i++) {
            theParam[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1]);
        }
    }
    return theParam;
}
